import 'package:yun/generated/json/base/json_convert_content.dart';
import 'package:yun/entity/setting_entity.dart';

SettingEntity $SettingEntityFromJson(Map<String, dynamic> json) {
	final SettingEntity settingEntity = SettingEntity();
	final String? deviceNo = jsonConvert.convert<String>(json['device_no']);
	if (deviceNo != null) {
		settingEntity.deviceNo = deviceNo;
	}
	final String? hfSerial = jsonConvert.convert<String>(json['hfSerial']);
	if (hfSerial != null) {
		settingEntity.hfSerial = hfSerial;
	}
	final String? offTime = jsonConvert.convert<String>(json['offTime']);
	if (offTime != null) {
		settingEntity.offTime = offTime;
	}
	final String? onTime = jsonConvert.convert<String>(json['onTime']);
	if (onTime != null) {
		settingEntity.onTime = onTime;
	}
	final String? region = jsonConvert.convert<String>(json['region']);
	if (region != null) {
		settingEntity.region = region;
	}
	final String? url = jsonConvert.convert<String>(json['url']);
	if (url != null) {
		settingEntity.url = url;
	}
	final int? screen = jsonConvert.convert<int>(json['screen']);
	if (screen != null) {
		settingEntity.screen = screen;
	}
	final int? mode = jsonConvert.convert<int>(json['mode']);
	if (mode != null) {
		settingEntity.mode = mode;
	}
	final int? count = jsonConvert.convert<int>(json['count']);
	if (count != null) {
		settingEntity.count = count;
	}
	final double? adVolume = jsonConvert.convert<double>(json['adVolume']);
	if (adVolume != null) {
		settingEntity.adVolume = adVolume;
	}
	final double? tipVolume = jsonConvert.convert<double>(json['tipVolume']);
	if (tipVolume != null) {
		settingEntity.tipVolume = tipVolume;
	}
	final bool? log = jsonConvert.convert<bool>(json['log']);
	if (log != null) {
		settingEntity.log = log;
	}
	return settingEntity;
}

Map<String, dynamic> $SettingEntityToJson(SettingEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['device_no'] = entity.deviceNo;
	data['hfSerial'] = entity.hfSerial;
	data['offTime'] = entity.offTime;
	data['onTime'] = entity.onTime;
	data['region'] = entity.region;
	data['url'] = entity.url;
	data['screen'] = entity.screen;
	data['mode'] = entity.mode;
	data['count'] = entity.count;
	data['adVolume'] = entity.adVolume;
	data['tipVolume'] = entity.tipVolume;
	data['log'] = entity.log;
	return data;
}